<?php namespace Common\Model;
use Hdphp\Model\Model;
//登录注册模型
class Member extends Model{
	protected $table = "user";
	protected $validate = array(
		array('cellphone','required','手机号码不能为空',3,3),
		array('password','required','密码不能为空',3,3)
		
	);
	
	public function reg(){
	   	if(!$this->create()) return false;
		$this->add();
		return true;
	}
}


 ?>